<footer class="site-footer">
  <div class="container">
    <div class="row featurette">
      <div class="col-12 col-sm-4">
        <p style="color: #fff"><b>ECLIPSE LEGAL</b></p>
        <a href="https://www.eclipse.org/legal/privacy.php">Privacy Policy</a><br>
        <a href="https://www.eclipse.org/legal/termsofuse.php">Terms of Use</a><br>
        <a href="https://www.eclipse.org/legal/copyright.php">Copyright Agent</a><br>
        <a href="https://www.eclipse.org/legal/epl-2.0/">Eclipse Public License</a><br>
        <a href="https://www.eclipse.org/legal/">Legal Resources</a><br>
        <a href="https://eclipse.org/security/">Report a Vulnerability</a><br>
      </div>
      <div class="col-12 col-sm-4">
        <a href="https://www.eclipse.org">
          <img src="/media/eclipse_foundation_logo.svg" id="logo-eclipse-foundation">
        </a>
      </div>
      <div class="col-12 col-sm-4">
        <a href="https://iot.eclipse.org">
          <img src="/media/eclipse_iot_logo.svg" id="logo-eclipse-iot">
        </a>
      </div>
    </div>
  </div>


  {{ if .IsTranslated | and site.Params.footer.show_translations }}
    <div class="powered-by d-flex flex-wrap pb-2 justify-content-center">
      <div class="p-2 font-weight-bold"><i class="fas fa-globe pr-1" aria-hidden="true"></i>{{ i18n "languages" }}:</div>
      <div class="p-2">{{ index site.Data.i18n.languages .Lang }}</div>
      {{ range .Translations }}
        <div class="p-2"><a href="{{ .Permalink }}">{{ index site.Data.i18n.languages .Lang }}</a></div>
      {{ end }}
    </div>
  {{ end }}

  {{ if or (site.GetPage "/terms.md") (site.GetPage "/privacy.md") }}
  <p class="powered-by">
    {{ with site.GetPage "/privacy.md" }}
      {{ printf "<a href=\"%s\">%s</a>" .RelPermalink .Title | safeHTML }}
    {{ end }}
    {{ with site.GetPage "/terms.md" }}
      {{ if site.GetPage "/privacy.md" }} &middot; {{ end }}
      {{ printf "<a href=\"%s\">%s</a>" .RelPermalink .Title | safeHTML }}
    {{ end }}
  </p>
  {{ end }}

  {{ with site.Copyright }}
  <p class="powered-by" id="copyright">
    {{ replace . "{year}" now.Year | markdownify }}
  </p>
  {{ end }}

  {{/* Display copyright license. */}}
  {{ partial "site_footer_license" . }}

  <p class="powered-by" id="template-info">
    {{ $is_sponsor := site.Params.i_am_a_sponsor | default false }}
    {{ $hide_published_with_footer := site.Params.power_ups.hide_published_with | default true }}
    {{ if not (and $is_sponsor $hide_published_with_footer) }}
    {{ $default := "Published with {hugoblox} — the free, {repo_link}open source{/repo_link} website builder that empowers creators." }}
    {{ $i18n_published_with := i18n "published_with" | default $default }}
    {{ if not (findRE "{hugoblox}" $i18n_published_with) }}
    {{ warnf "Please attribute Hugo Blox using `{hugoblox}` in the `published_with` text." }}
    {{ $i18n_published_with = $default }}
    {{ end }}
    {{ $i18n_published_with = replace $i18n_published_with "{hugoblox}" "<a href=\"https://hugoblox.com/?utm_campaign=poweredby\">Hugo Blox Builder</a>" | safeHTML }}
    {{ $i18n_published_with = replace $i18n_published_with "{repo_link}" "<a href=\"https://github.com/HugoBlox/hugo-blox-builder\">" | safeHTML }}
    {{ $i18n_published_with = replace $i18n_published_with "{/repo_link}" "</a>" | safeHTML }}
    {{ $i18n_published_with | replaceRE "{year}" now.Year | markdownify | emojify | safeHTML }}
    {{ end }}
  </p>
</footer>
